package com.zzs.library.mbg.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

public class Book implements Serializable {
    @ApiModelProperty(value = "书籍id")
    private Long id;

    @ApiModelProperty(value = "书名")
    private String name;

    @ApiModelProperty(value = "作者")
    private String auth;

    @ApiModelProperty(value = "豆瓣评分")
    private Integer score;

    @ApiModelProperty(value = "百度云盘下载地址")
    private String baidudownload;

    @ApiModelProperty(value = "腾讯微云下载地址")
    private String tenxundownload;

    @ApiModelProperty(value = "城域网盘下载地址")
    private String chenyudownload;

    @ApiModelProperty(value = "提取码")
    private String extraction;

    @ApiModelProperty(value = "简介")
    private String brief;

    @ApiModelProperty(value = "封面")
    private byte[] pic;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getBaidudownload() {
        return baidudownload;
    }

    public void setBaidudownload(String baidudownload) {
        this.baidudownload = baidudownload;
    }

    public String getTenxundownload() {
        return tenxundownload;
    }

    public void setTenxundownload(String tenxundownload) {
        this.tenxundownload = tenxundownload;
    }

    public String getChenyudownload() {
        return chenyudownload;
    }

    public void setChenyudownload(String chenyudownload) {
        this.chenyudownload = chenyudownload;
    }

    public String getExtraction() {
        return extraction;
    }

    public void setExtraction(String extraction) {
        this.extraction = extraction;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public byte[] getPic() {
        return pic;
    }

    public void setPic(byte[] pic) {
        this.pic = pic;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", auth=").append(auth);
        sb.append(", score=").append(score);
        sb.append(", baidudownload=").append(baidudownload);
        sb.append(", tenxundownload=").append(tenxundownload);
        sb.append(", chenyudownload=").append(chenyudownload);
        sb.append(", extraction=").append(extraction);
        sb.append(", brief=").append(brief);
        sb.append(", pic=").append(pic);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}